home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Dec 89 / 0215-TRadio.SetText Flash-Dec89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.0 KB  |  36 lines  |  [TEXT/GEOL]

  1. Item    9013023                         18-Dec-89        00:02
  2.  
  3. From:   BRAINCHILD                      Brainchild, E Corbett, S Rome,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    TRadio.SetText Flashing ?
  8.  
  9.  
  10.  
  11. Hi !
  12.  
  13. I'm working on a dialog whose items interact and I'm getting some unusual
  14. behavior.
  15.  
  16. When the user tabs out of one of my TEditTexts, I want to set the label of a
  17. TRadio to the text that he put in the TEditText.  I just take control at
  18. TECDialogView.Tab, and make a TRadio.SetText call.  Works fine, but with one
  19. minor glitch:
  20.  
  21. If I call TRadio.SetText( newText, _kRedraw_ ), the radio label flashes,
  22. drawing once immediately and then again in response to the update event.
  23.  
  24. If I call TRadio.SetText( newText, _NOT kRedraw_ ), the radio label is not
  25. redrawn at all.
  26.  
  27. I've worked around it by just calling TRadio.SetText( newText, _NOT kRedraw_ )
  28. immediately followed by a call to TRadio.ForceRedraw.  This works fine for me,
  29. but I'd be interested if anyone knew why it was necessary.
  30.  
  31. Thanks,
  32.  
  33. Sean Rome
  34.  
  35.  
  36.